package org.ywf.framework.core;

import com.sun.corba.se.impl.orbutil.threadpool.TimeoutException;
import org.ywf.common.entity.ConsumerDto;
import org.ywf.common.entity.RequestData;
import org.ywf.framework.annotation.ProxyMapping;

public interface Consumer {

    ConsumerDto communicate(ProxyMapping mapping, Object serverBody, RequestData<?> requestData, Class returnType) throws TimeoutException;

}
